|
Revision 20, 0.9 kB
(checked in by smidl, 18 years ago)
|
|
priprava Cmake pro win
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | # Make sure the compiler can find include files from our Bdm library. |
|---|
| 2 | include_directories (${BDM_SOURCE_DIR}/bdm) |
|---|
| 3 | |
|---|
| 4 | # Make sure the linker can find the Hello library once it is built. |
|---|
| 5 | link_directories (${BDM_BINARY_DIR}/bdm) |
|---|
| 6 | |
|---|
| 7 | ## Save all needed libraries in variable BdmLibs |
|---|
| 8 | SET(BdmLibs bdm itpp) |
|---|
| 9 | |
|---|
| 10 | IF(WIN32) |
|---|
| 11 | IF(ITPP_INCLUDE_DIR) |
|---|
| 12 | include_directories(${ITPP_INCLUDE_DIR}) |
|---|
| 13 | ENDIF(ITPP_INCLUDE_DIR) |
|---|
| 14 | IF(ITPP_LIB_DIR) |
|---|
| 15 | link_directories(${ITPP_LIB_DIR}) |
|---|
| 16 | ENDIF(ITPP_LIB_DIR) |
|---|
| 17 | ENDIF(WIN32) |
|---|
| 18 | |
|---|
| 19 | # Add executable called "helloDemo" that is built from the source files |
|---|
| 20 | # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. |
|---|
| 21 | add_executable (test0 test0.cpp) |
|---|
| 22 | add_executable (testKF testKF.cpp) |
|---|
| 23 | add_executable (testPF testPF.cpp) |
|---|
| 24 | |
|---|
| 25 | # Link the executable to the Hello library. |
|---|
| 26 | target_link_libraries (test0 ${BdmLibs}) |
|---|
| 27 | target_link_libraries (testKF ${BdmLibs}) |
|---|
| 28 | target_link_libraries (testPF ${BdmLibs}) |
|---|