-
Notifications
You must be signed in to change notification settings - Fork 2
Worked Examples
Mike Langmayr edited this page Jul 29, 2024
·
12 revisions
Edit the file CMakeLists.txt. The first few lines contain user definitions, as shown below.
#
#
#
#
#
XXX.XXX.XXX Page 11 of 49
Detector Controller Server Interface 20 September
2022
----------------------------------------------------------------------------
BEGIN USER DEFINITIONS
----------------------------------------------------------------------------
user must define the interface type here
valid types are: "AstroCam" | "Archon"
set(INTERFACE_TYPE "Archon")
# If your software is not installed in the indicated directory then change this:
set(PROJECT_BASE_DIR $ENV{HOME}/Software/camera-interface)
# This prints a large number of debugging messages and may be eliminated in future releases:
#add_definitions(-DLOGLEVEL_DEBUG)Allowable interface types are (as indicated in the file), AstroCam or Archon . As shown in the above example, this user has set the interface type to Archon. Next, indicate where your software has been installed, using the syntax:
set(PROJECT_BASE_DIR $ENV{HOME}/Software/camera-interface)Above, this user has installed the software in the Software/camera-interface/ sub-directory in their home directory.
Do not run cmake or make from the same directory as the CMakeLists.txt file. Change to the build directory and run cmake and then make from there, as follows (keystrokes entered by the user are shown in blue):
[developer@localhost ~]$ cd Software/camera-interface/build
[developer@localhost build]$ cmake ..
[developer@localhost build]$ make