source: branches/maven/projects/jar2lib/src/main/resources/CMakeLists.vm @ 6809

Revision 6809, 1.1 KB checked in by curtis, 9 years ago (diff)

Working version of Jar2Lib.

RevLine 
[6806]1#
2# CMakeLists.txt
3#
4$headerBlock
5# CMake build file for $projectName.
6
7cmake_minimum_required(VERSION 2.8)
8
9project($projectId)
10
11include(jace/Prerequisites.cmake)
12
13add_subdirectory(jace)
14
15# -- build $projectName --
16
[6809]17include_directories(include "proxies/include" "jace/include"
[6806]18  "${JAVA_INCLUDE_PATH}" "${JAVA_INCLUDE_PATH2}" "${Boost_INCLUDE_DIR}")
19
20file(GLOB_RECURSE PROJECT_SRC "proxies/source/*.cpp")
21
22add_library($projectId SHARED ${PROJECT_SRC})
23
24target_link_libraries($projectId jace)
25
26if(CMAKE_COMPILER_IS_GNUCXX)
27  set_target_properties($projectId PROPERTIES
28    COMPILE_FLAGS "-fpermissive")
29else(CMAKE_COMPILER_IS_GNUCXX)
30  set_target_properties($projectId PROPERTIES
31    DEFINE_SYMBOL JACE_PROXY_EXPORTS)
32endif(CMAKE_COMPILER_IS_GNUCXX)
33
34target_link_libraries($projectId jace)
35
36# -- build some examples for testing $projectId --
37
38# TODO - eliminate hard-coded sources below, in favor of user-specified option
39
40# add_executable(showinf source/showinf.cpp)
41# target_link_libraries(showinf $projectId jace "${JAVA_JVM_LIBRARY}")
42
43# add_executable(minimum_writer source/minimum_writer.cpp)
44# target_link_libraries(minimum_writer $projectId jace "${JAVA_JVM_LIBRARY}")
Note: See TracBrowser for help on using the repository browser.