Select Git revision
CMakeLists.txt
Forked from
mlz / Frida
Source project has a limited visibility.
CMakeLists.txt 2.02 KiB
# frida: lib/CMakeLists.txt
set(library_name fridacore)
set(${library_name}_LIBRARY ${library_name} PARENT_SCOPE)
set(${library_name}_LIBRARY_TYPE SHARED)
bison_target(xaxyacc
xax_yacc.ypp ${CMAKE_CURRENT_BINARY_DIR}/xax_yacc.cpp COMPILE_FLAGS "-p xax -y" )
flex_target(xaxlex
xax_lex.lpp ${CMAKE_CURRENT_BINARY_DIR}/xax_lex.cpp COMPILE_FLAGS "-Pxax" )
add_flex_bison_dependency(xaxlex xaxyacc)
include_directories(${Frida_SOURCE_DIR}/lib ${CMAKE_CURRENT_BINARY_DIR} ${Boost_INCLUDE_DIRS})
configure_file("config.hpp.in" "${CMAKE_CURRENT_BINARY_DIR}/config.hpp")
set(src_files
commands.cpp
coord.cpp
curve.cpp
edif.cpp
expr.cpp
fbase.cpp
fassign.cpp
fstring.cpp
file_in.cpp
file_out.cpp
fit.cpp
fregistry.cpp
fsel.cpp
func.cpp
genus.cpp
import.cpp
jsel.cpp
loop.cpp
manip.cpp
mem.cpp
node.cpp
obj.cpp
olf.cpp
opr.cpp
plot.cpp
reduce_curv.cpp
reduce_spec.cpp
rssm.cpp
slice.cpp
special.cpp
toplevel.cpp
variables.cpp
)
set(inc_files
commands.hpp
coord.hpp
curve.hpp
defs.hpp
edif.hpp
expr.hpp
file_in.hpp
file_out.hpp
fit.hpp
fregistry.hpp
fsel.hpp
func.hpp
genus.hpp
import.hpp
jsel.hpp
loop.hpp
manip.hpp
mem.hpp
node.hpp
obj.hpp
olf.hpp
opr.hpp
plot.hpp
ptr.hpp
reduce_curv.hpp
reduce_spec.hpp
registry.hpp
rssm.hpp
slice.hpp
special.hpp
toplevel.hpp
variables.hpp
xax_lex.hpp
)
add_library(${library_name} SHARED
${src_files}
${BISON_xaxyacc_OUTPUTS}
${FLEX_xaxlex_OUTPUTS}
)
target_link_libraries(${library_name}
${readplus_LIBRARY}
${fridatrivia_LIBRARY}
${fridaplot_LIBRARY}
pthread
${FFTW_LIBRARIES}
${KWW_LIBRARIES}
${Cerf_LIBRARIES}
${LMFit_LIBRARIES}
)
set_target_properties(${library_name} PROPERTIES OUTPUT_NAME ${library_name})
install(TARGETS ${library_name} LIBRARY DESTINATION ${destination_lib} COMPONENT Libraries)