2007/3/22, Teodor Calin Hanchevici <[EMAIL PROTECTED]>:
I have about 100 files, but 4 are windows specific, and 3 are linux specific
When i try to build it picks all files. I wanted to know if there is a
simpler way then
listing all the files.
for instance
AUX_SOURCE_DIRECTORY(fileio FILO)
IF (CMAKE_SYSTEM_NAME STREQUAL "YouSystemName")
SET_SOURCE_FILES_PROPERTIES(fileio/unixfileattributes.cpp
PROPERTIES IGNORE ON)
SET_SOURCE_FILES_PROPERTIES(fileio/unixfilesystem.cpp
PROPERTIES IGNORE ON)
endif
Understood but how did you specify cmake to actually
compile the 100 files?
Do they ALL belong to the same Library af an ADD_LIBRARY?
If it is the case what did you use for SOURCE_FILES
ADD_LIBRARY(yourlib
SOURCE_FILES)
If your SOURCE_FILES is a CMake variable containing you may
try to either:
- not ADD your specific file to the list in the first place
- remove the file from the list using LIST cmake MACRO
(see cmake --help-command LIST)
--
Erk
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake