From 1063826d14702f9b1efe9347ca5733a61b8549c0 Mon Sep 17 00:00:00 2001 From: tlegrand Date: Wed, 19 Sep 2007 11:41:08 +0000 Subject: [PATCH] Forget gprop application under Visual Studio --- eo/app/gprop/CMakeLists.txt | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/eo/app/gprop/CMakeLists.txt b/eo/app/gprop/CMakeLists.txt index 52f6ea07..53ed8fbb 100644 --- a/eo/app/gprop/CMakeLists.txt +++ b/eo/app/gprop/CMakeLists.txt @@ -34,37 +34,22 @@ ENDIF(WIN32 AND NOT CYGWIN) SET (GPROP_SOURCES gprop.cpp) -# no matter what is the OS, hopefully -ADD_EXECUTABLE(gprop ${GPROP_SOURCES}) - -ADD_DEPENDENCIES(gprop eo) -ADD_DEPENDENCIES(gprop eoutils) -###################################################################################### - - - -###################################################################################### -### 4) Optionnal: define your target(s)'s version: no effect for windows -###################################################################################### - -SET(GPROP_VERSION ${GLOBAL_VERSION}) -SET_TARGET_PROPERTIES(gprop PROPERTIES VERSION "${GPROP_VERSION}") -###################################################################################### - - - -###################################################################################### -### 5) Link the librairies for your target(s) -###################################################################################### - -TARGET_LINK_LIBRARIES(gprop eo eoutils) +# especially for Visual Studio +IF(NOT WIN32 OR CYGWIN) + ADD_EXECUTABLE(gprop ${GPROP_SOURCES}) + ADD_DEPENDENCIES(gprop eo eoutils) + + TARGET_LINK_LIBRARIES(gprop eo eoutils) + + SET(GPROP_VERSION ${GLOBAL_VERSION}) + SET_TARGET_PROPERTIES(gprop PROPERTIES VERSION "${GPROP_VERSION}") +ENDIF(NOT WIN32 OR CYGWIN) ###################################################################################### - ###################################################################################### -### 6) Windows advanced config - especially for Microsoft Visual Studio 8 +### 4) Windows advanced config - especially for Microsoft Visual Studio 8 ###################################################################################### IF(CMAKE_CXX_COMPILER MATCHES cl)