fasmcpp  0.1
Including fasmcpp in your project

This guide assumes you have already compiled and installed fasmcpp. If you haven't already, see Installation.

CMake

To include fasmcpp in your CMake project all you have to do is to use find_package.

find_package("fasmcpp")

It defines the following variables:

Variable Value
FASMCPP_FOUND 1
FASMCPP_INCLUDE_DIR Directory that contains fasmcpp.h
FASMCPP_LIBRARY Files that you should link against
FASMCPP_BINARY Redistributable binaries (you must copy this to your binary folder and distribute it with your executable)

Then you must specify:

target_link_libraries(YourTarget ${FASMCPP_LIBRARY})
target_include_directories(YourTarget PRIVATE ${FASMCPP_INCLUDE_DIR})
if (FASMCPP_BINARY)
get_filename_component(BINARY ${FASMCPP_BINARY} NAME)
configure_file("${FASMCPP_BINARY}" "${CMAKE_BINARY_DIR}/${BINARY}" COPYONLY)
endif()

Others

You can also include fasmcpp in your project manually, of course. Open the directory to which you installed fasmcpp. It should have 2 or 3 subdirectories, depending on the platform. You must: