]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - shell/CMakeLists.txt
JavaScriptCore-903.5.tar.gz
[apple/javascriptcore.git] / shell / CMakeLists.txt
... / ...
CommitLineData
1SET(JSC_HEADERS
2)
3
4SET(JSC_SOURCES
5 ../jsc.cpp
6)
7
8SET(JSC_LIBRARIES
9 ${JavaScriptCore_LIBRARY_NAME}
10)
11
12INCLUDE_IF_EXISTS(${JAVASCRIPTCORE_DIR}/shell/CMakeLists${PORT}.txt)
13
14WEBKIT_WRAP_SOURCELIST(${JSC_SOURCES})
15INCLUDE_DIRECTORIES(./ ${JavaScriptCore_INCLUDE_DIRECTORIES})
16ADD_EXECUTABLE(${JSC_EXECUTABLE_NAME} ${JSC_HEADERS} ${JSC_SOURCES})
17TARGET_LINK_LIBRARIES(${JSC_EXECUTABLE_NAME} ${JSC_LIBRARIES})
18
19IF (JSC_LINK_FLAGS)
20 ADD_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} LINK_FLAGS "${JSC_LINK_FLAGS}")
21ENDIF ()
22
23IF (SHARED_CORE)
24 SET_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
25ENDIF ()